package com.tcs.test.http.proxypool;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tcs.model.porxypool.proxyPoolBean;

public class ProxyPoolTest1 {
	
	private final Logger logger = LoggerFactory.getLogger(ProxyPoolTest1.class);
	
	@Test
	public void test1() {
		proxyPoolBean model1 = new proxyPoolBean();
//		ProxyPoolBean model2 = new ProxyPoolBean();
//		List<ProxyPoolBean> proxyList = Lists.newArrayList();
//		proxyList.add(model1);
//		proxyList.add(model2);
		ObjectMapper json = new ObjectMapper();
		try {
			String result = json.writeValueAsString(model1);
			logger.info(" result : {} " , result);
		} catch (JsonProcessingException e) {
			logger.error("" , e);
		}
		
//		String url = "https://www.hao123.com/?tn=93006350_hao_pg";
//		url.substring(url.indexOf("//") + 3);
	}

}
